package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.entity.CourseVideo;
import com.dingreading.cloud.common.util.PageUtil;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface CourseVideoService extends IService<CourseVideo> {

    Page<CourseVideo> pageList(PageUtil pageUtil, Long typeId, String keyword, Integer enabled);

    int getMaxShowOrder();

    void updateEnabled(Long id, Integer enabled);

    List<CourseVideo> getByCourseId(Long courseId, Integer enabled);

    long getCourseIdCnt(Long courseId);

    long dropBean(Long id);

}
